﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Register" Title="Register" %>

<%@ Register assembly="EO.Web" namespace="EO.Web" tagprefix="eo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolder1" Runat="Server">
    <h1>REGISTRATION</h1>
    <div>
    
        <table style="width:100%;" cellpadding="5">
            <tr>
                <td style="width: 78px; font-weight:bold" align="right">User Name :</td>
                <td style="width: 196px">
                    <asp:TextBox ID="txtUserName" runat="server" Width="189px"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="rfvUserName" runat="server" 
                        ControlToValidate="txtUserName" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style="width: 78px; font-weight:bold"align="right">Password :</td>
                <td style="width: 196px">
                    <asp:TextBox ID="txtPassword" runat="server" Width="190px" TextMode="Password"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="rfvPassword" runat="server" 
                        ControlToValidate="txtPassword" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style="width: 78px; font-weight:bold"align="right">
                    Name :</td>
                <td style="width: 196px">
                    <asp:TextBox ID="txtName" runat="server" Width="189px"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="rfvName" runat="server" 
                        ControlToValidate="txtName" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style="width: 78px; font-weight:bold"align="right">
                    Company :</td>
                <td style="width: 196px">
                    <asp:TextBox ID="txtCompany" runat="server" Width="190px"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="rfvCompany" runat="server" 
                        ControlToValidate="txtCompany" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style="width: 78px; font-weight:bold"align="right">
                    Email :</td>
                <td style="width: 196px">
                    <asp:TextBox ID="txtEmail" runat="server" Width="189px"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="rfvEmail" runat="server" 
                        ControlToValidate="txtEmail" ErrorMessage="(*)"></asp:RequiredFieldValidator>
&nbsp;
                    <asp:RegularExpressionValidator ID="revEmail" runat="server" 
                        ControlToValidate="txtEmail" ErrorMessage="Invalid Email !" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td style="width: 78px; font-weight:bold"align="right">
                    Phone :</td>
                <td style="width: 196px">
                    <asp:TextBox ID="txtPhone" runat="server" Width="190px"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="rfvPhone" runat="server" 
                        ControlToValidate="txtPhone" ErrorMessage="(*)"></asp:RequiredFieldValidator>
&nbsp;
                    <asp:RegularExpressionValidator ID="revPhone" runat="server" 
                        ControlToValidate="txtPhone" ErrorMessage="8 digits at least !" 
                        ValidationExpression="^\d*[0-9]{8}$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td style="width: 78px; font-weight:bold"align="right">
                    <asp:Button ID="btnSubmit" runat="server" onclick="btnSubmit_Click" 
                        style="height: 26px" Text="Submit" />
                </td>
                <td style="width: 196px">
                    <asp:Button ID="btnReset" runat="server" onclick="btnReset_Click" Text="Reset" 
                        Width="56px" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    
    </div>

</asp:Content>

